﻿
@{
    ViewBag.Title = "结算详情";
    Layout = "~/Views/Shared/DetailsInfoLayout.cshtml";
}

@section CSS{
    <style>
        .content .row { font-family: '微软雅黑','Microsoft YaHei'; }
        .content .row .i_details_title { margin: 0 auto; text-align: center; padding: 30px; }
        .content .row .i_details_title .i_main { margin: 10px auto; border-bottom: #cdcdcd solid 1px; padding-bottom: 30px; }
        .content .row .i_details_title .i_main .red_txt { color: red; font-size: 30px; }
        .content .row .i_details_title .i_main .green_txt { color: green; font-size: 30px; }
        .content .form-group span { color: #666; padding-left: 50px; display: block; float: left; width: 130px; }
    </style>
}
<section class="content">
    <div class="row">
        <div class="col-md-12 i_details_title">
            @(Model == null ? "货款 — 结算" : (Model.status == 4 || Model.status == 5 ? "退货 — 退款" : "货款 — 结算"))订单（@(Model == null ? "" : Model.order_no) ）
            @if (Model != null &&(Model.status == 1 || Model.status == 2 || Model.status == 6))
            {
                <div class="i_main"><span class="green_txt">+ @(Model == null ? "" : Model.money.ToString("F2"))  </span> 元</div>

            }
            else
            {
                <div class="i_main"><span class="red_txt">- @(Model == null ? "" : Model.money.ToString("F2")) </span> 元</div>

            }
        </div>
        <div class="col-md-12">
            <div class="form-group">
                <span>当前状态：</span>
                <label>@(Model == null ? "" : (Model.status == 1 ? "待结算" : (Model.status == 2 ? "正在结算" : (Model.status == 4 ? "待退款":(Model.status==5?"退款成功":(Model.status==6?"结算成功":"异常"))))))</label>
            </div>
            <div class="form-group">
                <span>订单金额：</span>
                <label>￥ @(Model == null ? "" : Model.order_total.ToString("F2")) 元</label>
            </div>
            <div class="form-group">
                <span>服 务 费：</span>
                @*<label>￥ @(Model == null ? "" : ((Model.service_rate / 100) * Model.order_total).ToString("F2")) 元</label>*@
                <label> @(Model == null ? "":("￥ " + (Model.order_total - Model.money).ToString("F2") + " 元")) </label>
            </div>
            <div class="form-group">
                <span>发货时间：</span>
                <label>@(Model == null ? "" : Model.add_time.ToString("yyyy-MM-dd HH:mm:ss")) </label>
            </div>
            <div class="form-group">
                <span>结算时间：</span>
                <label>@(Model == null || Model.settlement_time ==null? "" : Model.settlement_time.ToString("yyyy-MM-dd HH:mm:ss")) </label>
            </div>
            <div class="form-group">
                <span>结算订单：</span>
                <label>@(Model == null ? "" : Model.order_no) </label>
            </div>
            <div class="form-group">
                <span>流水编号：</span>
                <label>@(Model == null ? "" : Model.settlement_no) </label>
            </div>
        </div>
    </div>
</section>
@section JS{

    <script type="text/javascript">
        $(function () {

        })

    </script>
}

